{tpl head}
<div class="mbx"><span class="fl"><a href="?">工作小助手管理中心</a>--{$name} </span><span class="fr"><a href="?c={$classname}">分栏列表</a></span> </div>
<form method="Post" name="myForm" action="" id="myForm">
<table id="senfe" class="new_table" width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<thead><tr class="n_bt"><td colspan="2" align="center">工作小助手管理系统</td></tr>
<tr><th height="28" colspan="2" class="thbt">【{$title}】</th></tr>
</thead>
<tbody id="bstable">
    <tr>
        <td width="13%" height="30" align="right">小区：</td>
        <td width="87%">
            <select name="parentid" class="input400 selecth">
                <option value="0">无小区</option>
                {loop $streetlist $v}
                <option value="{$v.id}" {if $oj.parentid==$v.id}selected="selected"{/if}>{$v.name}</option>
                {/loop}
            </select>
        </td>
    </tr>
    <tr>
      <td width="13%" height="30" align="right">小区名称(楼号)：</td>
      <td width="87%">
          <input name="name" type="text" required="required" alt="不能为空" class="input400" value="{$oj->name}"/><span>(*)</span></td>
    </tr>
    <tr>
      <td width="13%" height="30" align="right">排序：</td>
      <td width="87%">
          <input name="sort" type="number" class="input400" value="{if $oj.sort}{$oj.sort}{else}1{/if}"/></td>
    </tr>
    <tr>
      <td width="13%" height="30" align="right">是否显示：</td>
      <td width="87%">
		  <input name="show" class="radio" id="is_show1" type="radio" value="1" {if $oj.show || !$id} checked="checked" {/if}/>
			<label for="is_show1" class="trigger"></label> 是
		  <input name="show" class="radio" id="is_show2" type="radio" value="0" {if !$oj.show && $form_action==mod_do} checked="checked" {/if} />
			<label for="is_show2" class="trigger"></label> 否</td>
    </tr>
    <tr>
      <td height="35" colspan="2" align="center" >
          <input name="a" type="hidden" value="{$form_action}" />
          <input name="id" type="hidden" value="{$id}" />
          <input name="add" id="submit" class="button" type="submit" value="确认" />
      &nbsp;<input name="" type="reset" class="button" value="重置" />
      </td>
    </tr>
</tbody>
</table>
</form>
<script type="text/javascript">
    $(document).ready(function() {
        k_ajaxForm('#myForm',"?c={$classname}",{if $id}false{else}true{/if});
        });

        function showRequest(formData, jqForm, options){

        }
</script>
{tpl foot}